package cn.tedu.imop.basic.service;

import cn.tedu.imop.basic.entity.Business;
import cn.tedu.imop.basic.entity.BusinessCategory;
import cn.tedu.imop.common.pojo.PageData;

/**
 * 商家分类的业务层接口
 * getXxxList
 * createXxxx
 * editXXX
 * removeXXX
 */
public interface BusinessService {
    /**
     * 查询商家分类列表信息
     * @param business
     * @return
     */
    PageData<Business> getBusinessList(Business business);
    default Business getBusiness(Business business){
        return null;
    }
    /**
     * 添加新的商家分类信息
     * @param business
     * @return
     */
    Boolean createBusiness(Business business);
    default Boolean editBusiness(Business category){
        return true;
    }
    default Boolean removeBusiness(Integer id){
        return true;
    };
}
